//
// Created by wujehy on 2020/4/20.
//

#include <iostream>
#include <sstream>
#include "Business/DataBase/DataBaseHelper.h"

#include <chrono>

#define DBNAME "test.db"

int64_t getTimeMicro() {
    std::chrono::time_point<std::chrono::system_clock> p = std::chrono::system_clock::now();
    return std::chrono::duration_cast<std::chrono::microseconds>(p.time_since_epoch()).count();
}

int main(){
    DataBaseHelper dataBaseHelper(DATABASENAME);

    dataBaseHelper.tableCheckExists();


    std::string token = "daadadadasd";
    dataBaseHelper.getIoTDataBaseFactory()->loginDeviceByToken(token);
}